﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

/// <summary>
/// 渲染方式
/// 1. StructedBuffer搜索后发现只能保证ShaderModel5.0+稳定运行,对应OpenGL的SSBO,
/// 这个即便是ES3.0/3.1也不一定能正常运行,但是是目前性能最好的
/// 
/// 2. GpuInstance是借助Texture代替StructedBuffer,且一DrawCall最多绘制MaxBatchSize*Batch个实体
/// 但是兼容性会好很多
/// 
/// </summary>
public enum RenderMethod
{
    StructedBuffer = 1,
    GpuInstance = 2
}

public class GpuHudFacadeContext
{
    private RenderMethod m_currentRenderMethod = RenderMethod.GpuInstance;
    public RenderMethod CurrentRenderMethod
    {
        get
        {
            return m_currentRenderMethod;
        }
    }

    public void SetRenderMethod(RenderMethod rm)
    {
        m_currentRenderMethod = rm;
    }

}
